home *** CD-ROM | disk | FTP | other *** search
- /*
- ** OpenURL - MUI preferences for openurl.library
- ** Written by Troels Walsted Hansen <troels@thule.no>
- ** Placed in the public domain.
- **
- ** This module contains utility functions common to all modules.
- */
-
- #include "prefs_common.h"
- #include "prefs_main.h"
-
- /**************************************************************************/
-
- VOID SPrintf(STRPTR to, STRPTR fmt, ...)
- {
- static ULONG fmtfunc = 0x16C04E75;
- RawDoFmt(fmt, &fmt + 1, (APTR)&fmtfunc, to);
- }
-
- /**************************************************************************/
-
- LONG xget(Object *obj, ULONG attribute)
- {
- LONG x;
- get(obj, attribute, &x);
- return(x);
- }
-
- /**************************************************************************/
-
- ULONG __stdargs DoSuperNew(struct IClass *cl, Object *obj, ULONG tag1, ...)
- {
- return(DoSuperMethod(cl, obj, OM_NEW, &tag1, NULL));
- }
-